import {API} from '../api/index.js'




/**
 * 代理总人数
 * @param {*} param 
 */
const _getInvitePeople =function(param){
    const url="/mobile/agent/getInvitePeople"
    const result=API.post(url,param)
    return result
}


/**
 * 获取总赚取
 * @param {*} param 
 */
const _getCommissionMoney =function(param){
    const url="/mobile/agent/getCommissionMoney"
    const result=API.post(url,param)
    return result
}



/**
 * 代理页面数据汇总
 * @param {*} param 
 */
const _agentInfo =function(param){
    const url="/mobile/agent/agentInfo"
    const result=API.post(url,param)
    return result
}


/**
 * 提现申请
 */
const _ajaxwithdraw=function(param){
    const url="/mobile/user/ajaxwithdraw"
    const result=API.post(url,param)
    return result
}



/**
 * 申请成为代理
 * @param {*} param 
 */
const _ajaxApplyAgent=function(param){
    const url="/mobile/user/ajaxApplyAgent"
    const result=API.post(url,param)
    return result
}


/**
 * 提现申请获取用户余额和银行卡
 * @param {*} param 
 */
const _goWithdraw=function(param){
    const url="/mobile/user/goWithdraw"
    const result=API.post(url,param)
    return result
}



/**
 * 获取躺赚订单详情
 * @param {*} param 
 */
const _getAgentOrderInfo=function(param){
    const url="/mobile/agent/getAgentOrderInfo"
    const result=API.post(url,param)
    return result
}


/**
 * 获取提现列表
 * @param {*} param 
 */
const _ajaxwithdrawList=function(param){
    const url="/mobile/user/ajaxwithdrawList"
    const result=API.post(url,param)
    return result
}


/**
 * 推广码
 * @param {*} param 
 */
const _promoCode=function(param){
    const url="/mobile/user/promoCode"
    const result=API.post(url,param)
    return result
}



export {
    _getInvitePeople,
    _getCommissionMoney,
    _agentInfo,
    _ajaxwithdraw,
    _ajaxApplyAgent,
    _goWithdraw,
    _getAgentOrderInfo,
    _ajaxwithdrawList,
    _promoCode
}